import request from '@/utils/request'

// 内容板块列表
export function sectionsLists(params?: Record<string, any>) {
    return request.get({ url: '/sections/list', params })
}

// 内容板块详情
export function sectionsDetail(params: Record<string, any>) {
    return request.get({ url: '/sections/detail', params })
}

// 内容板块新增
export function sectionsAdd(params: Record<string, any>) {
    return request.post({ url: '/sections/add', params })
}

// 内容板块编辑
export function sectionsEdit(params: Record<string, any>) {
    return request.post({ url: '/sections/edit', params })
}

// 内容板块删除
export function sectionsDelete(params: Record<string, any>) {
    return request.post({ url: '/sections/del', params })
}

// 获取所有子板块
export function sectionsGetAllSub(params: Record<string, any>) {
    return request.get({ url: '/sections/getAllSub', params })
}

// 获取内容详情
export function sectionsGetContent(params: Record<string, any>) {
    return request.get({ url: '/sections/getContent', params })
}
